package com.wantup;

import com.wantup.entity.User;

import java.util.HashMap;
import java.util.HashSet;

/**
 * @author Zhaoluowei
 * @version 1.0
 * @date 2019/5/23 11:04
 */
public class TestMethod {

    public static void main(String[] args) {
        //System.out.println("Hello world");

        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("hello", "world");
        System.out.println(hashMap.get("hello"));

        User user = new User();
        user.setUsername("张三");
        user.setAge(12);
        user.setAddress("北京丰台");

        User user2 = new User();
        user2.setUsername("张三");
        user2.setAge(12);
        user2.setAddress("北京丰台");

        User user3 = user;

        System.out.println("hashCode "+user.hashCode());
        System.out.println("hashCode2 "+user2.hashCode());
        System.out.println("hashCode3 "+user3.hashCode());

        System.out.println("1<<4 --> "+(1<<4));
        System.out.println("1<<30 --> "+(1<<30));

        System.out.println("1>>>16 --> "+(1>>>16));

        //1163157884
        System.out.println("1163157884&(15) --> "+(1163157884&(15)));

    }

}
